<template>
  <ul class="icons">
    <li v-for="(item, index) in icons" :key="index">
      <img :src="item.imgUrl" alt="" />
      <span>{{ item.title }}</span>
    </li>
  </ul>
</template>

<script>
export default {
  data() {
    return {
      icons: [
        {
          id: 1,
          title: "自饮茶",
          imgUrl: "./images/icons1.png",
        },
        {
          id: 2,
          title: "茶具",
          imgUrl: "./images/icons2.png",
        },
        {
          id: 3,
          title: "茶礼盒",
          imgUrl: "./images/icons3.png",
        },
        {
          id: 4,
          title: "领福利",
          imgUrl: "./images/icons4.png",
        },
        {
          id: 5,
          title: "官方验证",
          imgUrl: "./images/icons5.png",
        },
      ],
    };
  },
};
</script>

<style lang="less" scoped>
.icons {
  padding: 0.4rem 0 0.2667rem 0;
  display: flex;
  justify-content: space-around;
  background-color: #fff;
  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    img {
      width: 1rem;
      height: 1rem;
    }
    span {
      padding: 0.1333rem 0;
      font-size: 0.4267rem;
    }
  }
}
</style>